<style>
    .text{
        border: 0px;
        padding-top: 10px;
    }
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Account')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-account" data-rule="required" readonly class="form-control" name="row[account]" type="text" value="{$row.account|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">头像:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar_url" data-rule="" class="form-control" size="50" name="row[avatar_url]" type="text" value="{$row.avatar_url|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-avatar_url" class="btn btn-danger faupload" data-input-id="c-avatar_url" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar_url"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-avatar_url" class="btn btn-primary fachoose" data-input-id="c-avatar_url" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar_url"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-avatar_url"></ul>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('推荐人')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-parent_id" data-source="usermanage/users/index" data-field="realname" class="form-control selectpage" name="row[parent_id]" type="text" value="{$row.parent_id|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('本周销售额')}:</label>
        <div class="col-xs-12 col-sm-8">
            <span class="form-control text" >{$order_money}</span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('当前积分')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-integral" data-rule="required" readonly class="form-control" name="row[integral]" type="number" value="{$row.integral|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">加入黑名单:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[blacklist]', ['1'=>__('是'), '0'=>__('否')], $row['blacklist'])}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('注册时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <span class="form-control text" >{$row['createtime']|datetime}</span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Binding')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-binding" class="form-control" name="row[binding]" type="text" value="{$row.binding|htmlentities}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Id_card_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-id_card_number" data-rule="required" readonly class="form-control" name="row[id_card_number]" type="text" value="{$row.id_card_number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Realname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-realname" data-rule="required" readonly class="form-control" name="row[realname]" type="text" value="{$row.realname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('可用pv值')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pv" data-rule="required" min="0" readonly class="form-control" step="0.1" name="row[pv]" type="number" value="{$row.pv|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">不可用pv值:</label>
        <div class="col-xs-12 col-sm-8">
            <span class="form-control text" >{$row['fix_pv']}</span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">注册权限:</label>
        <div class="col-xs-12 col-sm-8">
            <span class="form-control text">{$row['is_register']==1?'有权限':'无权限'}</span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">分组名称:</label>
        <div class="col-xs-12 col-sm-8">
            <span class="form-control text">{$group_name}</span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">接点人信息:</label>
        <div class="col-xs-12 col-sm-8">
            <span class="form-control text" >
                {if $contact}
                    昵称:{$contact.nickname}
                    编号:{$contact.account}
                {else/}
                    暂无接点人
                {/if}
            </span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">推荐人信息:</label>
        <div class="col-xs-12 col-sm-8">
            <span class="form-control text" >
                {if $parent}
                    昵称:{$parent.nickname}
                    编号:{$parent.account}
                {else/}
                    暂无推荐人
                {/if}
            </span>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
